import api from '@/utils/http.js'

export const departmentInsertOne = async (data) => {
    return await api.post('/insertDepartment', data)
}

export const departmentSelectPage = async (data) => {
    return await api.get('/selectDepartment/page', { params: data })
}

export const departmentSelectOne = async (id) => {
    return await api.get('/getDepartmentInfo/' + id)
}

export const departmentUpdateOne = async (data) => {
    return await api.put('/updateDepartment', data)
}

export const departmentDeleteOne = async (id) => {
    return await api.delete('/deleteDepartment/' + id)
}
